import request from '@/utils/request'

// 封装login 接口
// export const loginApi = (data) => {
//   return request({
//     url: '/sys/login',
//     method: 'POST',
//     data
//     // data: data
//   })
// }

export const loginApi = (data) => request({
  url: '/sys/login',
  method: 'POST',
  data
  // data: data
})

export const getUserInfoApi = () => request({
  url: '/sys/profile',
  method: 'POST'
})

// getUserDetailById
export const getUserDetailByIdApi = (id) => request({
  url: `/sys/user/${id}`
})
